package com.biwin.core.api.vo;

import java.util.List;
import java.util.Set;

/**
 * 在线用户信息,登录成功后,返回给client端的信息.
 *
 * @author biwin
 * @since 0.0.1
 */
public class OnlineUserInfoVo {
    private Long id;
    private String account;
    private String name;
    private Integer sex;
    private String tel;
    private Set authorities;
    private List positionList;
    private String token;

    public OnlineUserInfoVo() {
    }

    public OnlineUserInfoVo(Long id, String account, String name, Integer sex, String tel, Set authorities,
                            List positionList, String token) {
        this.id = id;
        this.account = account;
        this.name = name;
        this.sex = sex;
        this.tel = tel;
        this.authorities = authorities;
        this.positionList = positionList;
        this.token = token;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Set getAuthorities() {
        return authorities;
    }

    public void setAuthorities(Set authorities) {
        this.authorities = authorities;
    }

    public List getPositionList() {
        return positionList;
    }

    public void setPositionList(List positionList) {
        this.positionList = positionList;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
